home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_01
/
8n01030a
< prev
next >
Wrap
Text File
|
1990-02-18
|
479b
|
24 lines
Listing 3
#define MAXDATEPRINTS 2 /* at least 2, maybe more */
date_print(i)
date i; /* internal date form */
{
static printable_date date[MAXDATEPRINTS];
static inuse = 0;
inuse = (inuse+1)%MAXDATEPRINTS; /* use next buffer */
/* actually do the work and convert date */
/* into a printable representation */
.....
memcpy(date[inuse],....);
return(date[inuse]);
}